package com.neuedu.corejava.ch7.inter;
//20190805

//一个类可以实现多个父接口；需要实现多个接口的所有方法
//一个类可以同时实现一个父类接口和它的子接口
//public class Animal implements IAnimal,IFly, IRun, ISwim
//一个类可以同时继承一个父类，实现一个或多个接口
//注意：抽象类可以不实现抽象方法
//public abstract class Animal extends Object implements IAnimal,IFly, IRun, ISwim{}
public class Animal extends Object implements IAnimal,IFly, IRun, ISwim{

	@Override
	public void swim() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void fly() {
		// TODO Auto-generated method stub
		
	}
	
	private void print(){
		System.out.println("print");
	}

	@Override
	public void breath() {
		// TODO Auto-generated method stub
		
	}

}
